<?=
get_toolbar(array('accion' => 'custom',
    'botones' => '<a href="' . site_url(get_uri_string()) . '" class="btn btn-warning color-blanco">' . ulang('ver_listado_empresas') . '</a>'));
?>
<?= get_alert(isset($success) ? $success : null, isset($error) ? $error : null); ?>
<div class="row">
    <div class="col-md-12">
        <div class="portlet box red" id="form_wizard_1">
            <div class="portlet-title">
                <div class="caption">
                    <i class="icon-reorder"></i> <?= ulang('nueva_empresa') ?> - <span class="step-title"><?= ulang('paso') ?> 1 <?= lang('de') ?> 3</span>
                </div>
            </div>
            <div class="portlet-body form">
                <form class="form-horizontal" action="<?= site_url($this->uri->uri_string()) ?>" id="form_mantenimiento" enctype="multipart/form-data" method="post">
                    <div class="form-wizard">
                        <div class="form-body">
                            <?= $wizard ?>
                            <div id="bar" class="progress progress-striped" role="progressbar">
                                <div class="progress-bar progress-bar-danger" style="width: 100%;"></div>
                            </div>
                            <div class="tab-pane active" id="tab1">
                                <div class="form-group">
                                    <div class="col-md-6">
                                        <label><?= ulang('seleccionar_imagen') ?></label>
                                        <input type="file" class="form-control" name="emi_url" style="padding-bottom: 40px;"/>
                                    </div>
                                    <div class="col-md-6">
                                        <button class="btn btn-primary" style="margin-top: 30px" type="submit"><?= ulang('guardar_imagen') ?></button>
                                    </div>
                                </div>
                                <div class="row mix-grid">
                                    <?php foreach($infoempresa['d_imagenes'] as $imagen){?>
                                        <div class="col-md-3 col-sm-4 mix category_1">
                                            <div class="mix-inner">
                                                <img class="img-responsive" src="<?=site_url(EMPRESAS.$infoempresa['emp_id']."/".$imagen['emi_thumb'])?>" alt="">
                                                <div class="mix-details danger">
                                                    <h4>&nbsp;</h4>
                                                    <a class="mix-link danger" href="<?=site_url(PANEL."usuario/borrar_imagen/".$infoempresa['emp_id']."/".$imagen['emi_id'])?>"><i class="icon-remove"></i></a>
                                                    <a class="mix-preview danger fancybox-button" href="<?=site_url(EMPRESAS.$infoempresa['emp_id']."/".$imagen['emi_url'])?>" title="<?=$infoempresa['emp_nombre']?>" data-rel="fancybox-button">
                                                        <i class="icon-search"></i>
                                                    </a>
                                                </div>
                                            </div>
                                        </div>
                                    <?php }?>
                                </div>
                                <div class="form-group">
                                    <div class="col-md-4"></div>
                                    <div class="col-md-5">
                                        <a href="<?= site_url(PANEL. 'usuario/empresas') ?>" class="btn green color-blanco">
                                            <?= ulang('finalizar_volver_al_listado_de_empresas') ?>
                                        </a>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </form>
            </div>
        </div>
    </div>
</div>
<script type="text/javascript">
    jQuery(function(){
        $('.mix-grid').mixitup();
    })

</script>